package org.jeecg.modules.ywMaterialEnter.service;

import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.ywMaterialEnter.entity.YwMaterialEnterDetail;
import org.jeecg.modules.ywMaterialEnter.entity.YwMaterialEnterMain;
import com.baomidou.mybatisplus.extension.service.IService;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 材料入库
 * @Author: jeecg-boot
 * @Date: 2024-08-22
 * @Version: V1.0
 */
public interface IYwMaterialEnterMainService extends IService<YwMaterialEnterMain> {

    /**
     * 添加一对多
     *
     */
    public void saveMain(YwMaterialEnterMain ywMaterialEnterMain, List<YwMaterialEnterDetail> ywMaterialEnterDetailList);

    /**
     * 确认入库
     * @param id yw_material_enter_main主键
     * @return
     */
    Result<?> confirmEnter(String id);

    /**
     * 修改一对多
     *
     */
    public void updateMain(YwMaterialEnterMain ywMaterialEnterMain, List<YwMaterialEnterDetail> ywMaterialEnterDetailList);

    /**
     * 删除一对多
     */
    public void delMain(String id);

    /**
     * 批量删除一对多
     */
    public void delBatchMain(Collection<? extends Serializable> idList);

}
